import { getToken } from '@/utils/auth'
import axios from 'axios'

const service = axios.create({
  baseURL: 'http://106.75.241.100:3103/'
})

service.interceptors.request.use(config => {
  config.headers['token'] = getToken()
  return config
})

service.interceptors.response.use(response => {
  return response
}, err => {
  return Promise.reject(err)
})

export default service